package marchsoft.modules.tiku.entity.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * Description：
 *
 * @author zhansiyu
 * Date: 2022/4/1 14:24
 **/
@Data
public class ESafeTypeDto implements Serializable{
    @NotNull(message = "分类id不能为空")
    private Long id;
    @NotBlank(message = "分类名不能为空")
    @Length(max = 20,message = "用户名字不能超过20个字符")
    private String name;
}
